package com.zephyr.io.chatroom;

import java.io.IOException;
import java.net.Socket;

public class SocketClient {

    public static void main(String[] args) {
        try {
            connect();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    public static void connect() throws IOException {
        Socket socket = new Socket("localhost", SocketServer.PORT);
        new ReadHandler(socket).start();
        new WriteHandler(socket).start();
    }

}
